package com.bakend.modules.sys.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (Role)表实体类
 *
 * @author makejava
 * @since 2021-05-02 03:28:57
 */
@SuppressWarnings("serial")
public class Role extends Model<Role> {

    private Integer id;
    //角色中文名，比如：超级管理员
    private String name;
    //角色英文名，比如：root
    private String simpleName;
    //角色状态，1可用，0不可用
    private String status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSimpleName() {
        return simpleName;
    }

    public void setSimpleName(String simpleName) {
        this.simpleName = simpleName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}